#ifndef AMAZO_TERRAIN
#define AMAZO_TERRAIN

#include <allegro.h>

typedef struct
{
	int w;
	int h;
	unsigned char *data;	
} __attribute__((__packed__)) TERRAIN;

void draw_terrain(BITMAP *bp, TERRAIN *data, BITMAP *texture, int off);
void free_terrain(TERRAIN *terr);
TERRAIN * generate_terrain(int w, int h, int ttop);

#endif

